<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品详情-加工 - 模切材料小管家</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* TDesign 工业品色彩系统 */
            --primary-color: #0052d9;
            --primary-light: #266fe8;
            --primary-dark: #003cab;
            --secondary-color: #f2f3ff;
            --accent-color: #e37318;
            --success-color: #00a870;
            --warning-color: #ed7b2f;
            --error-color: #d54941;
            
            /* 背景色系 */
            --bg-color-page: #f5f7fa;
            --bg-color-container: #ffffff;
            --bg-color-secondray: #f8f9fc;
            
            /* 边框和分割线 */
            --border-color: #e7e7e7;
            --border-color-light: #f0f0f0;
            --border-radius-small: 3px;
            --border-radius-medium: 6px;
            --border-radius-large: 9px;
            
            /* 文字色彩 */
            --text-primary: #1a1a1a;
            --text-secondary: #4e5969;
            --text-placeholder: #86909c;
            --text-disabled: #c9cdd4;
            
            /* 阴影系统 */
            --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-2: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
            --shadow-3: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
            
            /* 间距系统 */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: var(--bg-color-page);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 120px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-color-container);
            min-height: 100vh;
            box-shadow: var(--shadow-1);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 头部样式 - TDesign 简约风格 */
        .header {
            background: var(--primary-color);
            color: white;
            padding: var(--space-4) var(--space-4) var(--space-5);
            position: relative;
            z-index: 10;
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-4);
        }
        
        .back-btn {
            font-size: 18px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .back-btn:hover {
            opacity: 1;
        }
        
        .page-title {
            font-weight: 500;
            font-size: 16px;
        }
        
        .actions {
            display: flex;
            gap: var(--space-5);
        }
        
        .actions i {
            font-size: 16px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .actions i:hover {
            opacity: 1;
        }
        
        .favorite-btn,
        .report-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .favorite-btn:hover,
        .report-btn:hover {
            opacity: 1;
        }
        
        .favorite-btn i,
        .report-btn i {
            font-size: 14px;
        }
        
        .favorite-btn span,
        .report-btn span {
            font-size: 10px;
        }
        
        /* 主要内容区域 */
        .main-content {
            padding: var(--space-4);
        }
        
        
        /* 产品基本信息 */
        .product-info {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            padding: var(--space-4);
            margin-bottom: var(--space-4);
            box-shadow: var(--shadow-1);
            border: 1px solid var(--border-color-light);
        }
        
        .product-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-3);
            line-height: 1.3;
        }
        
        .product-price {
            font-size: 24px;
            font-weight: 700;
            color: var(--accent-color);
            margin-bottom: var(--space-3);
        }
        
        .product-meta {
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            color: var(--text-secondary);
            font-size: 14px;
        }
        
        .meta-item i {
            color: var(--text-placeholder);
            width: 16px;
            text-align: center;
        }
        
        /* 详细信息卡片 */
        .info-card {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            margin-bottom: var(--space-4);
            box-shadow: var(--shadow-1);
            border: 1px solid var(--border-color-light);
            overflow: hidden;
        }
        
        .card-header {
            padding: var(--space-4);
            background: var(--bg-color-secondray);
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .card-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .card-title i {
            margin-right: var(--space-2);
            color: var(--success-color);
            font-size: 14px;
        }
        
        .card-content {
            padding: var(--space-4);
        }
        
        .product-description {
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.6;
            margin-bottom: var(--space-3);
        }
        
        .spec-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .spec-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-2) 0;
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .spec-item:last-child {
            border-bottom: none;
        }
        
        .spec-label {
            color: var(--text-secondary);
            font-size: 13px;
        }
        
        .spec-value {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 500;
        }
        
        /* 公司信息 */
        .company-info {
            background: var(--bg-color-secondray);
            border-radius: var(--border-radius-medium);
            padding: var(--space-3);
            margin-bottom: var(--space-4);
            border: 1px solid var(--border-color-light);
        }
        
        .company-header {
            display: flex;
            align-items: center;
            margin-bottom: var(--space-3);
        }
        
        .company-logo {
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            border-radius: var(--border-radius-small);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            margin-right: var(--space-3);
        }
        
        .company-details h3 {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: var(--space-1);
        }
        
        .company-details p {
            font-size: 12px;
            color: var(--text-secondary);
        }
        
        .company-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-placeholder);
        }
        
        /* 参考group-detail.html的布局样式 */
        .group-info {
            padding: var(--space-4);
        }
        
        .info-section {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            margin-bottom: var(--space-4);
            box-shadow: var(--shadow-1);
            overflow: hidden;
            border: 1px solid var(--border-color-light);
        }
        
        .section-header {
            padding: var(--space-4);
            border-bottom: 1px solid var(--border-color-light);
            background: var(--bg-color-secondray);
        }
        
        .section-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: var(--space-2);
            color: var(--primary-color);
            font-size: 14px;
        }
        
        .section-content {
            padding: var(--space-4);
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-4);
            margin-bottom: var(--space-4);
        }
        
        .info-item {
            display: flex;
            flex-direction: column;
        }
        
        .info-label {
            color: var(--text-placeholder);
            font-size: 12px;
            margin-bottom: var(--space-1);
        }
        
        .info-value {
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
        }
        
        /* 企业信息样式 */
        .company-info {
            display: flex;
            align-items: center;
            padding: var(--space-4);
        }
        
        .company-logo {
            width: 40px;
            height: 40px;
            border-radius: var(--border-radius-medium);
            background: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            margin-right: var(--space-3);
            flex-shrink: 0;
        }
        
        .company-details {
            flex: 1;
        }
        
        .company-name {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: var(--space-1);
        }
        
        .company-location {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: var(--space-2);
        }
        
        .company-rating {
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }
        
        .rating-stars {
            display: flex;
            gap: 2px;
        }
        
        .rating-stars i {
            color: #ffc107;
            font-size: 10px;
        }
        
        .rating-text {
            font-size: 10px;
            color: var(--text-placeholder);
        }
        
        .contact-info {
            display: flex;
            flex-direction: column;
            gap: var(--space-1);
            margin-top: var(--space-3);
            padding-top: var(--space-3);
            border-top: 1px solid var(--border-color-light);
        }
        
        .contact-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
        }
        
        .contact-label {
            color: var(--text-secondary);
        }
        
        .contact-value {
            color: var(--text-primary);
            font-weight: 500;
        }
        
        /* 参与者区域 - TDesign 简约风格 */
        .participants-section {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            margin: 0 0 var(--space-6);
            box-shadow: var(--shadow-1);
            overflow: hidden;
            border: 1px solid var(--border-color-light);
        }
        
        .participants-header {
            padding: var(--space-4);
            border-bottom: 1px solid var(--border-color-light);
            background: var(--bg-color-secondray);
        }
        
        .participants-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .participants-title i {
            margin-right: var(--space-2);
            color: var(--primary-color);
            font-size: 14px;
        }
        
        .participants-badge {
            background: var(--accent-color);
            color: white;
            font-size: 10px;
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            margin-left: var(--space-2);
        }
        
        .participants-content {
            padding: var(--space-4);
            max-height: 300px;
            overflow-y: auto;
        }
        
        .participant-item {
            display: flex;
            align-items: center;
            padding: var(--space-2) 0;
            border-bottom: 1px solid var(--border-color-light);
        }
        
        .participant-item:last-child {
            border-bottom: none;
        }
        
        .participant-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 500;
            font-size: 12px;
            margin-right: var(--space-2);
            flex-shrink: 0;
        }
        
        .participant-info {
            flex: 1;
            min-width: 0;
        }
        
        .participant-name {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: var(--space-1);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .participant-details {
            font-size: 11px;
            color: var(--text-placeholder);
            line-height: 1.3;
        }
        
        .participant-time {
            font-size: 10px;
            color: var(--text-placeholder);
            text-align: right;
            min-width: 80px;
        }
        
        .initiator-tag {
            background: var(--warning-color);
            color: white;
            font-size: 8px;
            padding: 2px 4px;
            border-radius: var(--border-radius-small);
            margin-left: var(--space-1);
            font-weight: 500;
        }
        
        
        
        /* 底部操作栏 */
        .bottom-actions {
            position: fixed;
            bottom: 64px;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            padding: var(--space-4);
            border-top: 1px solid var(--border-color-light);
            display: flex;
            gap: var(--space-2);
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
        }
        
        .btn {
            flex: 1;
            padding: var(--space-3);
            border: none;
            border-radius: var(--border-radius-medium);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .btn-secondary {
            background: var(--bg-color-secondray);
            color: var(--text-secondary);
            border: 1px solid var(--border-color-light);
        }
        
        .btn-secondary:hover {
            background: var(--border-color-light);
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
        }
        
        /* 底部导航栏 - TDesign 简约风格 */
        .tabbar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            border-top: 1px solid var(--border-color);
            display: flex;
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
            height: 64px;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-2) 0;
            cursor: pointer;
            transition: color 0.2s ease;
            color: var(--text-placeholder);
        }
        
        .tab-item.active {
            color: var(--primary-color);
        }
        
        .tab-item:hover {
            color: var(--primary-light);
        }
        
        .tab-item i {
            font-size: 18px;
            margin-bottom: var(--space-1);
        }
        
        .tab-item span {
            font-size: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 头部区域 -->
        <div class="header">
            <div class="top-bar">
                <div class="back-btn" onclick="history.back()">
                    <i class="fas fa-arrow-left"></i>
                </div>
                <div class="page-title">产品详情-加工</div>
                <div class="actions">
                    <div class="favorite-btn" onclick="toggleFavorite()">
                        <i class="fas fa-heart"></i>
                        <span>收藏</span>
                    </div>
                    <div class="report-btn" onclick="reportProduct()">
                        <i class="fas fa-flag"></i>
                        <span>举报</span>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 产品信息 -->
        <div class="group-info">
            
            <!-- 内容信息 -->
            <div class="info-section">
                <div class="section-header">
                    <div class="section-title">
                        <i class="fas fa-info-circle"></i>
                        <span>内容信息</span>
                    </div>
                </div>
                <div class="section-content">
                    <div class="info-grid">
                        <div class="info-item">
                            <div class="info-label">产品类别:</div>
                            <div class="info-value" id="productCategory">精密模切</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">产品名称:</div>
                            <div class="info-value" id="productTitle">精密模切加工服务</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">产品型号:</div>
                            <div class="info-value" id="productModel">MC-2024</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">所在地:</div>
                            <div class="info-value" id="productLocation">江苏 · 苏州 · 工业园区</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">加工能力:</div>
                            <div class="info-value" id="productCapacity">月产能100万片</div>
                        </div>
                    </div>
                    
                    <div class="info-item" style="grid-column: 1 / -1;">
                        <div class="info-label">备注:</div>
                        <div class="info-value" id="productDescription">专业精密模切加工服务，拥有先进的模切设备和专业的技术团队。可承接各种材料的精密模切加工，包括胶带、泡棉、保护膜等。加工精度高，交货及时，品质稳定可靠。</div>
                    </div>
                </div>
            </div>
            
            <!-- 公司信息 -->
            <div class="info-section">
                <div class="section-header">
                    <div class="section-title">
                        <i class="fas fa-building"></i>
                        <span>公司信息</span>
                    </div>
                </div>
                <div class="section-content">
                    <div class="company-info">
                        <div class="company-logo">
                            <i class="fas fa-industry"></i>
                        </div>
                        <div class="company-details">
                            <div class="company-name" id="companyName">苏州精密模切厂</div>
                            <div class="company-location" id="companyLocation">江苏 · 苏州</div>
                            <div class="company-rating">
                                <div class="rating-stars">
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                    <i class="fas fa-star"></i>
                                </div>
                                <span class="rating-text">4.9分</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="contact-info">
                        <div class="contact-item">
                            <div class="contact-label">联系人:</div>
                            <div class="contact-value" id="contactName">李经理</div>
                        </div>
                        <div class="contact-item">
                            <div class="contact-label">联系电话:</div>
                            <div class="contact-value" id="contactPhone">139****9999</div>
                        </div>
                        <div class="contact-item">
                            <div class="contact-label">邮箱:</div>
                            <div class="contact-value" id="contactEmail">li@suzhou.com</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 询价区域 -->
            <div class="participants-section">
                <div class="participants-header">
                    <div class="participants-title">
                        <i class="fas fa-users"></i>
                        <span>询价</span>
                        <span class="participants-badge" id="orderCount">2</span>
                    </div>
                </div>
                <div class="participants-content">
                    <div class="participant-item">
                        <div class="participant-avatar">王</div>
                        <div class="participant-info">
                            <div class="participant-name">
                                深圳电子科技有限公司 王***
                                <span class="initiator-tag">新</span>
                            </div>
                            <div class="participant-details">联系电话: 137****7777</div>
                        </div>
                        <div class="participant-time">2024-01-18 14:30</div>
                    </div>
                    
                    <div class="participant-item">
                        <div class="participant-avatar">陈</div>
                        <div class="participant-info">
                            <div class="participant-name">东莞模切加工厂 陈***</div>
                            <div class="participant-details">联系电话: 136****6666</div>
                        </div>
                        <div class="participant-time">2024-01-17 16:20</div>
                    </div>
                </div>
                
            </div>
        </div>
        
        <!-- 底部操作栏 -->
        <div class="bottom-actions">
            <button class="btn btn-secondary" onclick="contactSupplier()">
                <i class="fas fa-phone"></i>
                联系供应商
            </button>
            <button class="btn btn-primary" onclick="inquiryProduct()">
                <i class="fas fa-shopping-cart"></i>
                立即询价
            </button>
        </div>
        
        <!-- 底部导航 -->
        <div class="tabbar">
            <div class="tab-item" onclick="location.href='home.html'">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </div>
            <div class="tab-item" onclick="location.href='demand-list.html'">
                <i class="fas fa-search"></i>
                <span>求购</span>
            </div>
            <div class="tab-item" onclick="location.href='publish-select.html'">
                <i class="fas fa-plus-circle"></i>
                <span>发布</span>
            </div>
            <div class="tab-item" onclick="location.href='consultation.html'">
                <i class="fas fa-comments"></i>
                <span>客服</span>
            </div>
            <div class="tab-item" onclick="location.href='profile.html'">
                <i class="fas fa-user"></i>
                <span>我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 模拟产品数据
        const productData = {
            1: {
                title: '精密模切加工服务',
                description: '专业精密模切加工服务，拥有先进的模切设备和专业的技术团队。可承接各种材料的精密模切加工，包括胶带、泡棉、保护膜等。加工精度高，交货及时，品质稳定可靠。',
                category: '精密模切',
                model: 'MC-2024',
                location: '江苏 · 苏州 · 工业园区',
                capacity: '月产能100万片',
                badge: 'hot',
                company: {
                    name: '苏州精密模切厂',
                    location: '江苏 · 苏州',
                    rating: 4.9,
                    contact: {
                        name: '李经理',
                        phone: '139****9999',
                        email: 'li@suzhou.com'
                    }
                }
            },
            2: {
                title: '激光切割加工服务',
                description: '高精度激光切割加工服务，采用进口激光设备，可加工各种金属和非金属材料。切割精度高，切口光滑，适用于精密零件加工。',
                category: '激光切割',
                model: 'LC-3000',
                location: '广东 · 深圳 · 南山区',
                capacity: '日产能5000件',
                badge: 'new',
                company: {
                    name: '深圳激光加工厂',
                    location: '广东 · 深圳',
                    rating: 4.8,
                    contact: {
                        name: '张经理',
                        phone: '138****8888',
                        email: 'zhang@laser.com'
                    }
                }
            }
        };
        
        // 加载产品数据
        function loadProductData() {
            const urlParams = new URLSearchParams(window.location.search);
            const productId = urlParams.get('id');
            
            if (productId && productData[productId]) {
                const product = productData[productId];
                
                // 更新页面内容
                document.getElementById('productTitle').textContent = product.title;
                document.getElementById('productDescription').textContent = product.description;
                document.getElementById('productCategory').textContent = product.category;
                document.getElementById('productModel').textContent = product.model;
                document.getElementById('productLocation').textContent = product.location;
                document.getElementById('productCapacity').textContent = product.capacity;
                
                // 更新公司信息
                if (product.company) {
                    document.getElementById('companyName').textContent = product.company.name;
                    document.getElementById('companyLocation').textContent = product.company.location;
                    document.getElementById('contactName').textContent = product.company.contact.name;
                    document.getElementById('contactPhone').textContent = product.company.contact.phone;
                    document.getElementById('contactEmail').textContent = product.company.contact.email;
                }
            }
        }
        
        // 获取徽章文本
        function getBadgeText(badge) {
            const badgeMap = {
                'hot': '热门',
                'new': '新品',
                'limited': '限量'
            };
            return badgeMap[badge] || badge;
        }
        
        // 分享产品
        function shareProduct() {
            if (navigator.share) {
                navigator.share({
                    title: document.getElementById('productTitle').textContent,
                    text: document.getElementById('productDescription').textContent,
                    url: window.location.href
                });
            } else {
                navigator.clipboard.writeText(window.location.href).then(() => {
                    alert('产品链接已复制到剪贴板');
                });
            }
        }
        
        // 切换收藏
        function toggleFavorite() {
            const heartIcon = document.querySelector('.favorite-btn .fa-heart');
            if (heartIcon.classList.contains('fas')) {
                heartIcon.classList.remove('fas');
                heartIcon.classList.add('far');
                heartIcon.style.color = '';
            } else {
                heartIcon.classList.remove('far');
                heartIcon.classList.add('fas');
                heartIcon.style.color = 'var(--error-color)';
            }
        }
        
        // 举报产品
        function reportProduct() {
            const reasons = ['虚假信息', '价格欺诈', '侵犯版权', '违法内容', '其他'];
            let reasonsText = reasons.map((reason, index) => `${index + 1}. ${reason}`).join('\n');
            
            const selectedReason = prompt(`请选择举报原因：\n${reasonsText}\n\n请输入对应数字(1-5):`);
            
            if (selectedReason && selectedReason >= 1 && selectedReason <= 5) {
                const reason = reasons[selectedReason - 1];
                if (confirm(`确定要举报该产品吗？\n举报原因：${reason}`)) {
                    alert('举报已提交，我们会尽快处理，感谢您的反馈！');
                }
            }
        }
        
        // 联系供应商
        function contactSupplier() {
            const companyName = document.getElementById('companyName').textContent;
            alert(`正在联系${companyName}...`);
        }
        
        // 产品询价
        function inquiryProduct() {
            const productTitle = document.getElementById('productTitle').textContent;
            
            if (confirm(`确定要对${productTitle}进行询价吗？`)) {
                alert('询价请求已发送，供应商将尽快回复！');
            }
        }
        
        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            loadProductData();
        });
        
        // 底部导航切换
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.tab-item').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
            });
        });
        
    </script>
</body>
</html>
